import requests
import jsonpath
import json
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0'
}

url = "https://www.lagou.com/lbs/getAllCitySearchLabels.json"
response = requests.get(url,headers=headers)

dict_data = json.loads(response.content)

print(jsonpath.jsonpath(dict_data,'$..A..name'))
